<template>
  <div class="box"></div>
  <Row>
    <Button type="default" @click="add">添加</Button>
  </Row>
  <mytest ref="c-mytest"></mytest>
</template>
<script>
import mytest from './251120_1.vue'
export default {
  data() {
    return {
      a: 1,
      b: 2
    }
  },
  components: {
    mytest
  },
  methods: {
    add(a, b, c) {
      console.log(`helloworld`)
    }
  },
  mounted() {
    let c = this.$refs['c-mytest']
    c.add()
  }
}
</script>
<style lang="scss" scoped>
.box {
  width: 100px;
  height: 100px;
  border: 1px solid #000;
}
</style>
